package hn.sigit.view.workflow.transaction;

import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.remoting.WebRemote;

@Name("analysisHelper")
@Scope(value=ScopeType.CONVERSATION)
@AutoCreate
public class AnalysisHelper {
	@In(scope = ScopeType.CONVERSATION)
	private DataEntryHelper dataEntryHelper;
	
	public AnalysisHelper() {
		//dataEntryHelper = (DataEntryHelper)Component.getInstance("dataEntryHelper");
		System.out.println("SELECTED LADM ID: " + dataEntryHelper.getSelectedLadmBaUnitId());
	}
	
	@WebRemote
	public String sayHello() {
		return "hello";
	}
}
